package com.example.tencentimdemo.im

class ImUiMessage(val message: ImMessageContent) {

    val itemType: Int
        get() {
            val type = when(message){
                is TextMessage ->  1
                is ImageMessage -> 2
                is VoiceMessage -> 3
                is VideoMessage -> 4
                is CustomMessage -> 5
            }
            return type
        }
}